home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / t3_1 / nexttsrc.lha / nexttsources / sun3tsystem / Makefile < prev    next >
Makefile  |  1990-06-25  |  441b  |  22 lines

  1. # Makefile for the TSYSTEM directory.
  2.  
  3. TMACHINE=sun3
  4. OBJS    =$(TMACHINE)_start_t.o $(TMACHINE)assist.o expand.o dynload.o float.o
  5.  
  6. CFLAGS    =-O
  7.  
  8. all:    localfs.t linkt $(OBJS)
  9.  
  10. localfs.t:
  11.     echo "(`hostname`)" > $@
  12.  
  13. linkt.sh:    Makefile
  14.     echo $(OBJS) | \
  15.     awk '{    print "#! /bin/sh"; \
  16.         printf("cc -Bstatic -o \"$$@\""); \
  17.         for (i=1; i<=NF; i++) printf(" $${TSYSTEM}/%s", $$i); \
  18.         print " -lm" }' > $@
  19.  
  20. clean:
  21.     -rm localfs.t linkt.sh linkt $(OBJS)
  22.